package vip.ifmm.lehouse.common.message;

import vip.ifmm.lehouse.common.enums.type.EmailMimeType;

import java.util.Arrays;

/**
 * 邮件发送详细信息类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/18 19:25:36</p>
 */
public class EmailSenderMessage extends BasedMessage {

    private static final long serialVersionUID = 6037892100342098584L;

    // 收件人
    private String[] emailReceivers = null;

    // 邮件主题
    private String emailTopic = null;

    // 邮件内容
    private String emailContent = null;

    // 邮件内容类型
    private EmailMimeType emailType = EmailMimeType.TEXT;

    public String[] getEmailReceivers() {
        return emailReceivers;
    }

    public EmailSenderMessage setEmailReceivers(String[] emailReceivers) {
        this.emailReceivers = emailReceivers;
        return this;
    }

    public String getEmailTopic() {
        return emailTopic;
    }

    public EmailSenderMessage setEmailTopic(String emailTopic) {
        this.emailTopic = emailTopic;
        return this;
    }

    public String getEmailContent() {
        return emailContent;
    }

    public EmailSenderMessage setEmailContent(String emailContent) {
        this.emailContent = emailContent;
        return this;
    }

    public EmailMimeType getEmailType() {
        return emailType;
    }

    public EmailSenderMessage setEmailType(EmailMimeType emailType) {
        this.emailType = emailType;
        return this;
    }

    @Override
    public String toString() {
        return "EmailSenderMessage{" +
                "emailReceivers=" + Arrays.toString(emailReceivers) +
                ", emailTopic='" + emailTopic + '\'' +
                ", emailContent='" + emailContent + '\'' +
                '}';
    }
}
